package com.qk.management.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @Author:zhengbowen
 * @Date: 2025/10/18 10:05
 * @Description:
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RedisCacheable {
    /**
     * key前缀
     */
    String prefix() default "";
    /**
     * 缓存时间
     */
    long expire() default 0;
    /**
     * 缓存k时间格式
     */
    TimeUnit expireTimeFormat() default TimeUnit.MINUTES;
}
